Navicat provides a complete solution for maintaining MongoDB objects.
In the main window, select objects in the Navigation pane or the Objects tab.
Control-click the selected objects.
Choose Maintain, and then choose a maintain option the from the pop-up menu.
Results show in a pop-up window.
Option |
Description |
Repair Database |
Rebuild the database and indexes by discarding invalid or corrupt data. |
Option |
Description |
Compact Collection |
Rewrite and defragment all data and indexes in the collection. |
Validate Collection |
Check the structures within a namespace for correctness by scanning the collection’s data and indexes. |
Reindex Collection |
Drop and recreate all indexes on the collection. |